Name :Axis enable command

Symbol :MC_Power

Illustrate:

    Used to enable or de-enable the corresponding shaft, and the high level is active.
    After ENABLE is set to TRUE, the axis enters the enabled state, STATUS is set to TRUE, and the PLCOpen status of the axis switches to Standstill (there is no axis error).
    When ENABLE is set to FALSE, the axis is disabled, and the PLCOpen state of the axis is switched to Disabled (if there is no axis error).
    The PLCOpen state machine of the axis enters the Standstill from Disabled, and only after it is enabled, can it be used for motion commands.
    After the axis is enabled, motion commands can be executed, and after the axis is unenabled, the motion commands cannot be accepted and motion control cannot be realized, but non-motion commands can be executed. 

Image:

Parameter:

The name of the parameter data type IN/OUT Parameter role Illustrate Default value
AXISNO UDINT IN Pulse shaft number 0-7
not
ENABLE BOOL IN The function block is enabled TRUE:The function block is enabled;FALSE:Functional block incapacitated
FALSE
STATUS BOOL OUT Axis enable flags TRUE:The axis is enabled and enters the runnable state
FALSE
BUSY BOOL OUT Busy sign TRUE:The axis is enabled
FALSE
ERROR BOOL OUT Error flags TRUE:There was an error with the function block call
FALSE
ERRORID UINT OUT Error codes 0:Normal, Other: Error code value
0

Example:

LD:

ST:



Interpretation:

   AXISNO is 0, which means that the operating pulse axis is 0;
   ENABLE is TRUE, and the axis is enabled.
   If StatusOut is set to TRUE, the axis is enabled and the axis is operational.
   If BusyOut is set to TRUE, the axis is enabled and remains true after the axis is enabled.
   If ErrorOut is TURE, it means that there is an error and cannot be executed, and if it is FALSE, there is no error;
   If ErrorIdOut is 0, the execution is normal, and if it is not 0, there is an error and cannot be executed.